﻿using System;
using System.Collections.Generic;
using Gfinder.Domain.Models.Garages;
using Gfinder.Domain.Repositories.Garages;
using Gfinder.Domain.Services.Garages;

namespace Gfinder.Service.Garages
{
    public class GarageService : IGarageService
    {
        private readonly IGarageRepository _garageRepository;

        public GarageService(IGarageRepository garageRepository)
        {
            _garageRepository = garageRepository;
        }

        public Garage FindById(Guid id)
        {
            return _garageRepository.FindById(id);
        }

        public List<Garage> FindAll()
        {
            return _garageRepository.FindAll();
        }
    }
}
